<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0 , user-scalable=no,minimal-ui">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>汤臣倍健旗下F6官网</title>
  <meta name="keywords" content="汤臣倍健,F6官网">
  <meta name="description" content="汤臣倍健创立于1995年10月，2002年系统地将膳食营养补充剂引入中国非直销领域，并迅速成长为中国膳食营养补充剂领导品牌和标杆企业，年销量超过10,000,000瓶。">
  <link rel="stylesheet" href="./static/css/reset.css">
  <style>
    html,body{
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      overflow: hidden;
    }
    .audio-btn{
      width: 50px;
      height: 50px;;
      background-image: url(./static/img/play.png);
      background-size: cover;
      background-repeat: no-repeat;
      position: fixed;
      bottom:50px;
      left: 50px;
    }
  </style>
</head>
  <body>
    <iframe src="./home.html" width="100%" height="100%" frameborder=0 id="ifranme-demo"></iframe>
    <section class="main">
      <div class="call-warp">
        <div class="call-content">
          <img src="" alt="">
          <!-- <a class="tel" href="tel:400-0300-368"></a> -->
          <a class="mail" href="mailto:f6@by-health.com"></a>
        </div>
      </div>
    </section>
    <div class="audio-btn"></div>
    <audio id="audio1" src="http://file.rzkeji.com/web/f6/web/music/Last%20Night.mp3" loop="loop"></audio>
    <script src="./static/js/jquery-2.1.4.js"></script>
    <script>
      // function audioAutoPlay(id){
      //   var flag = true;
      //   if(flag){
      //     var audio1 = document.getElementById(id),
      //     play = function(){
      //       audio1.play();
      //       document.removeEventListener("touchstart",play, false);
      //     };
      //     audio1.play();
      //     document.addEventListener("WeixinJSBridgeReady", function () {//微信
      //       play();
      //     }, false);
      //     document.addEventListener('YixinJSBridgeReady', function() {//易信
      //       play();
      //     }, false);
      //     document.addEventListener("touchstart",play, false);
      //     audioAutoPlay('player1');
      //   }
      //   flag = false;
      // }
      // audioAutoPlay("audio1");
     
      var audioA = document.getElementById("audio1");

      function getBrowserInfo(){ 
        var ua = navigator.userAgent.toLocaleLowerCase();
        var browserType=null; 
        if (ua.match(/msie/) != null || ua.match(/trident/) != null) { 
          browserType = "IE"; 
          browserVersion = ua.match(/msie ([\d.]+)/) != null ? ua.match(/msie ([\d.]+)/)[1] : ua.match(/rv:([\d.]+)/)[1]; 
        } else if (ua.match(/edge/) != null) { 
          browserType = "edge"; 
        } else if (ua.match(/firefox/) != null) { 
          browserType = "火狐"; 
        }else if (ua.match(/ubrowser/) != null) { 
          browserType = "UC"; 
        }else if (ua.match(/opera/) != null) { 
          browserType = "欧朋"; 
        } else if (ua.match(/bidubrowser/) != null) { 
          browserType = "百度"; 
        }else if (ua.match(/metasr/) != null) { 
          browserType = "搜狗"; 
        }else if (ua.match(/tencenttraveler/) != null || ua.match(/qqbrowse/) != null) { 
          browserType = "QQ"; 
        }else if (ua.match(/maxthon/) != null) { 
          browserType = "遨游"; 
        }else if (ua.match(/chrome/) != null) { 
          var is360 = _mime("type", "application/vnd.chromium.remoting-viewer"); 
          function _mime(option, value) { 
              var mimeTypes = navigator.mimeTypes; 
              for (var mt in mimeTypes) { 
                if (mimeTypes[mt][option] == value) { 
                  return true; 
                } 
              } 
            return false; 
          } 
          if(is360){ 
            browserType = '360'; 
          }else{ 
            $('html').css("zoom",".80"); 
          } 
        }else if (ua.match(/safari/) != null) { 
          browserType = "Safari"; 
        }
        return browserType
      } 
      $('.audio-btn').on('click',function(){
        var playFlag = $('.audio-btn').css('background-image').indexOf('play')
        if(playFlag == -1){
          audioA.pause();
          $('.audio-btn').css('background-image','url(./static/img/play.png)')
        }else{
          audioA.play();
          $('.audio-btn').css('background-image','url(./static/img/stop.png)')
        }
      })
      if(getBrowserInfo() != null){
        $('.audio-btn').trigger("click");
      }

      function browserRedirect() {

        var sUserAgent= navigator.userAgent.toLowerCase();

        var bIsIpad= sUserAgent.match(/ipad/i) == "ipad";

        var bIsIphoneOs= sUserAgent.match(/iphone os/i) == "iphone os";

        var bIsMidp= sUserAgent.match(/midp/i) == "midp";

        var bIsUc7= sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";

        var bIsUc= sUserAgent.match(/ucweb/i) == "ucweb";

        var bIsAndroid= sUserAgent.match(/android/i) == "android";

        var bIsCE= sUserAgent.match(/windows ce/i) == "windows ce";

        var bIsWM= sUserAgent.match(/windows mobile/i) == "windows mobile";

        if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) {

          window.location.href= 'http://www.f6shot.com/m';

        }

      }

      browserRedirect();
    </script>
  </body>
</html>